//
//  DengluViewController.m
//  A_HandHeldLOL
//
//  Created by Zhao YanBin on 16/1/25.
//  Copyright © 2016年 zhaoyanbin. All rights reserved.
//

#import "DengluViewController.h"

@interface DengluViewController ()
@property(nonatomic, retain)UILabel *yonghu1;
@property(nonatomic, retain)UITextField *yonghu2;
@property(nonatomic, retain)UILabel *mima1;
@property(nonatomic, retain)UITextField *mima2;
@property(nonatomic, retain)UIButton *denglu;
@property(nonatomic, retain)UIButton *wangji;
@end

@implementation DengluViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
self.navigationItem.title = @"登录";
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(left)];
    
    [self yemian];
}

-(void)yemian
{
    self.yonghu1 = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, 80, 40)];
    _yonghu1.backgroundColor = [UIColor yellowColor];
    _yonghu1.text = @"用户名:";
    [self.view addSubview:_yonghu1];
    [_yonghu1 release];
    
    self.mima1 = [[UILabel alloc] initWithFrame:CGRectMake(50, 170, 80, 40)];
    _mima1.backgroundColor = [UIColor yellowColor];
    _mima1.text = @"密码:";
    [self.view addSubview:_mima1];
    [_mima1 release];
    
    self.yonghu2 = [[UITextField alloc] initWithFrame:CGRectMake(140, 100, 200, 40)];
    _yonghu2.backgroundColor = [UIColor redColor];
    _yonghu2.placeholder = @"请输入用户名";
    [self.view addSubview:_yonghu2];
    [_yonghu2 release];
    
    self.mima2 = [[UITextField alloc] initWithFrame:CGRectMake(140, 170, 200, 40)];
    _mima2.backgroundColor = [UIColor redColor];
    _mima2.placeholder = @"请输入密码";
    _mima2.secureTextEntry = YES;
    [self.view addSubview:_mima2];
    [_mima2 release];
    
    self.denglu = [UIButton buttonWithType:UIButtonTypeSystem];
    _denglu.backgroundColor = [UIColor blueColor];
    _denglu.frame = CGRectMake(100, 250, 180, 40);
    [_denglu setTitle:@"登录" forState:UIControlStateNormal];
    [self.view addSubview:_denglu];
    [_denglu addTarget:self action:@selector(denglu:) forControlEvents:UIControlEventTouchUpInside];
}
//登陆点击
-(void)denglu:(UIButton *)btn
{
    
}

-(void)left
{
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
